define(function(require,exports,module){
	
	require('common');
	var tpl = require('../../tpl/member_borrow/borrow_mine.tpl');//载入tpl模板
	var curId = $("#borrowDetailDiv");
    var pagerid = "kkpagerBorrowDetail";
	//初始化显示表格、搜索
	//借款详情
	if(window.location.search.split("?")[1] == undefined)
	{
		require.async(['./showTable','./search'],function(showTable,search){
			search.search('/member/borrow/mineList.html?',tpl,curId,pagerid);
			$(".repay_detail").click(function(){
				showTable.ajaxUrl('/member/borrow/mineList.html?status=99&time=9',tpl,curId,pagerid);
			});
		});
	}
	else
	{
		require.async(['./showTable','./search'],function(showTable,search){
			search.search('/member/borrow/mineList.html?',tpl,curId,pagerid);
			$(".repay_detail").click(function(){
				showTable.ajaxUrl('/member/borrow/mineList.html'+window.location.search+'&status=99&time=9',tpl,curId,pagerid);
			});
		});
		$("#status a:eq(0)").removeClass("current");
		$("#status a:eq(3)").addClass("current");
	}

	
	
});